package com.delicious.core.base;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class BaseException extends RuntimeException {

    private ResponseEnum code;

    public BaseException(ResponseEnum code) {
        this.code = code;
    }

    public BaseException(Throwable cause, ResponseEnum code) {
        super(cause);
        this.code = code;
    }

}